package lg.minecraft.plugin.entityclear.command;

import lg.minecraft.plugin.entityclear.config.ClearTaskConfig;
import lg.minecraft.plugin.entityclear.config.MainConfig;
import lg.minecraft.plugin.library.command.CommandContext;
import lg.minecraft.plugin.library.command.SubCommand;

/**
 * @author langle__
 * @version 1.0
 */
public class ReloadCommand extends SubCommand {

    public ReloadCommand() {
        super("reload");
    }

    @Override
    public String getDescription() {
        return "重载配置";
    }

    @Override
    public void onCommand(CommandContext context) {
        MainConfig.INSTANCE.load();
        ClearTaskConfig.INSTANCE.load();
        context.getSender().sendMessage("[§a实体清理§f] 配置重载完成");
    }

}
